var GOOGLE_QUOTE_NAME_SOURCE = "http://finance.google.com/finance/match";


function loadQuoteNameGOOGLE(_quote,_loadFinished)
{
	var urlStr = getQuoteNameUrlGOOGLE(_quote);

	_IG_FetchContent(urlStr,function(response)
	{
		var splited = response.split('"n":"')[1];
		var indexEnd = splited.indexOf('"');

		_quote.name = splited.substring(0,indexEnd);

		_loadFinished();
	});

}


function getQuoteNameUrlGOOGLE(_quote)
{
	var baseUrl = GOOGLE_QUOTE_NAME_SOURCE;
	var quoteSymbol = _quote.symbol.split('.')[0];

	return baseUrl +"?matchtype=matchall&q="+quoteSymbol;


}
